﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using OgilvyOne.Model;

namespace OgilvyOne.IDAL
{
    public interface IVicoDealer
    {
        DataSet Query(VicoDealerModel q);
        int Add(VicoDealerModel model);
        bool Update(VicoDealerModel model);
        bool Del(int id);
        VicoDealerModel GetModel(int id);
        /// <summary>
        /// 获取经销商省份
        /// </summary>
        /// <param name="provinceID"></param>
        /// <returns></returns>
        string GetDealerProvince(string provinceID);
        /// <summary>
        /// 获取经销商城市
        /// </summary>
        /// <param name="provinceId"></param>
        /// <param name="cityID"></param>
        /// <returns></returns>
        string GetDealerCity(string provinceId, string cityID);
        /// <summary>
        /// 获取经销商名称
        /// </summary>
        /// <param name="dealerID"></param>
        /// <returns></returns>
        string GetDealerName(string dealerID);
    }
}
